from django.urls import path
from base.views import *

urlpatterns = [
    path(r'project/', project_index, name='project'),
    path(r'project/list/', project_list, name='prj_list'),
    path(r'project/add/', project_add, name='prj_add'),    
    path(r'project/delete/', project_delete, name='prj_del'),
    path(r'project/update/', project_update, name='prj_up'),
    path(r'project/query/', project_query, name='prj_query'),
    path(r'project/run/', project_run, name='prj_run'),
    path(r'project/stop/', project_stop, name='prj_stop'),
    
    path(r'scene/', scene_index, name='scene'),
    path(r'scene/list/', scene_list, name='sce_list'),
    path(r'scene/add/', scene_add, name='sce_add'), 
    path(r'scene/delete/', scene_delete, name='sce_del'),
    path(r'scene/update/', scene_update, name='sce_up'),
    path(r'scene/query/', scene_query, name='sce_query'),
    path(r'scene/run/', scene_run, name='sce_run'),

    path(r'file/', file_index, name='file'),
    path(r'file/upload/', file_upload, name='file_up'),
    path(r'file/delete/', file_delete, name='file_del'),
    path(r'file/download/', file_download, name='file_dl'),
    path(r'file/sync/', file_sync, name='file_sync'),
    path(r'file/split/', file_split, name='file_split'), 

    path(r'user/', user_index),
    path(r'user/add/', user_add),
    path(r'user/list/', user_list),
    path(r'user/delete/', user_del),
    path(r'user/setpwd/', user_set),

    path(r'result/', result_index, name='result'),
    path(r'result/list/', result_list, name='res_list'),
    path(r'result/delete/', result_delete, name='res_del'),
    path(r'result/download/', result_download, name='res_dl'),

    path( r'baseline/', base_index, name='baseline' ),
    path( r'baseline/list/', base_list, name='base_list' ),
    path( r'baseline/delete/', base_delete, name='base_del' ),
    path( r'baseline/add/', base_add, name='base_add' ),
    path( r'baseline/update/', base_update, name='base_update' ),
    path( r'baseline/query/', base_query, name='base_query' ),

    path(r'login/', login, name='login'),
    path(r'logout/', logout, name='logout'),
        
]
